package com.xdja.zuoye

/**
 * 兔子问题 1  1  2  3  5  8
 */

fun main() {
    println(getRabbitCount(12))
}

fun getRabbitCount(month: Int): Int {
    if (month == 1) return 1
    if (month == 2) return 1
    return getRabbitCount(month - 1) + getRabbitCount(month - 2)
}
